<?php
/**
 * Category Template: Tin tức
 */
?>
<?php get_header() ?>

<div class="content-wrapper main-posts catne">
     <div class="breadcrumbs">
    <?php if(function_exists('bcn_display'))
    {
        bcn_display();
    }?>
</div>
    <div class="grid">
        <div class="row hidden-sidebar">
            <div class="c1-8 main">
                <h1><?php echo single_cat_title( '', false ) ?></h1>
                <div class="c1-8" id="primary">
                    <?php
                    while (have_posts()): the_post();
					$categories = get_the_category(get_the_ID()); 
                        ?>
                        <article class="post-27019 post type-post status-publish format-standard hentry category-corporate tag-ces c1-8 entry p3 has-media" id="post-27019">

                            <figure class="c1-3">
                                <a class="excerpt-image-link" href="<?php the_permalink() ?>">
                                    <div class="featured-thumb">
                                        <?php the_post_thumbnail(array(230, 180)) ?>
                                    </div>
                                </a>
                            </figure>
                            <div class="entry-content-wrapper c4-8">
								<div class="fcat">
								<?php foreach($categories as $k => $row) { ?>
                                <a href="<?php echo home_url('category/'.$row->slug) ?>" class="<?php echo $k ? '' : 'rubric' ?>"><?php echo $row->name ?>, </a>
								<?php } ?>
								<div style="clear:both;"></div>
								</div>
                                <h3 class="entry-title"><a rel="bookmark" title="<?php the_title() ?>" href="<?php the_permalink() ?>"><?php the_title() ?></a></h3>
                                <div class="post-meta">
                                    <span class="byline">Ngày <?php echo the_time('d/m/y') ?></span>
                                </div>
                                <div class="entry-content"><?php the_excerpt('hello') ?></div>
                            </div>
                        </article><!-- .post -->
                    <?php endwhile; ?>
                    <?php if ($wp_query->max_num_pages > 1) : ?>
                        <div class="pagination clearfix">
                            <div class="previous"><?php next_posts_link(__('<span class="meta-nav">&larr;</span> Older posts', 'twentyeleven')); ?></div>
                            <div class="next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&rarr;</span>', 'twentyeleven')); ?></div>

                        </div>
                    <?php endif; ?>

                </div><!-- #primary -->

            </div> <!-- /main -->
            <aside class="c9-12 sidebar" id="secondary"> <?php dynamic_sidebar('page_sidebar') ?> </aside>
        </div> <!-- /row -->


    </div><!-- /grid -->
</div> <!-- /content-wrapper -->

<?php get_footer() ?>

